home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3575 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: news.iconn.net!news
  2. From: thecrow@iconn.net (The Crow)
  3. Newsgroups: hku.open-forum,hku.cc.forum,hk.comp.pc,comp.lang.c++,comp.lang.pascal.misc
  4. Subject: Re: Is Pascal worth to learn? Can it help me to get a job?
  5. Date: 24 Jan 1996 22:38:40 GMT
  6. Organization: I rule the world
  7. Message-ID: <4e6cdg$5am@news.iconn.net>
  8. References: <30f2adf8.7810115@news.hku.hk> <4df7e8$1ug@classic.iinet.com.au> <4dh361$djk@news.2sprint.net>
  9. NNTP-Posting-Host: st-ts00-01.iconn.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.6
  13.  
  14. In article <4dh361$djk@news.2sprint.net>, ggrotz@2sprint.net says...
  15. >
  16. >ng@mitswa.com.au (John A Ng) wrote:
  17. >
  18. >> It can do anything that C can but with a remarkably fast compiler (about 20 
  19. times
  20. >>faster than a competitive C compiler/linker).  This makes learning a
  21. >>breeze.
  22. >
  23. >So very true...And ultimately smaller than C.  I wrote just a simple
  24. >"Hello World!" program in TP, and C both...The EXE for TP was 2K,
  25. >while the EXE for C was about 7K.  Something's wrong somewhere, if
  26. >people think C is better.  Actually, I think it's more Microsoft
  27. >tomfoolery than anything, as you'd be very hard pressed to convince me
  28. >that C is better as a language than Pascal, though I'd like to see the
  29. >Pascal IDE brought up to par with the C one (most of the $ params we
  30. >use in Pascal are standard checkboxes in the C IDE.).  And in C, you
  31. >don't have to trifle with the 64K limit for vars...
  32. >
  33. >
  34. >
  35.  
  36. C/C++ is better in that pointers work better, math functions are in fact 
  37. usually quicker, the 64k thing is actually the no different, that is a compiler 
  38. dependent problem. C also gives you more power, like dynamicaly allocating 
  39. variables and cool math things like
  40.  
  41. i += 5;
  42. i ++;
  43.  
  44. which is more effecient than their equivalents 
  45.  
  46. i = i + 5;
  47. i = i + 1;
  48.  
  49. of course a tricky compiler will do this automatically
  50.  
  51. -- 
  52. The Crow - thecrow@iconn.net
  53. "It can't rain all the time"
  54. -Kryptology
  55.  
  56.